﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Citi.OTFPC.Resource.Domain
{
    public partial class Resource
    {
        public Resource()
        {
        }

        public Resource(string connectionString) : base(connectionString)
        {
            
        }

        public Resource GetByName(string fullName)
        {
            return SelectAll<Resource>().FirstOrDefault(x => x.FullName.ToUpper() == fullName.ToUpper());
        }
    }
}
